{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-user-plus" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">用户组列表 <a href="index.php?a=group.userlist&group_id=0">(未分组用户 {%$ungroup_count%} 个)</a></p>
                    <a href="index.php?a=group.add" class="btn btn-success btn-sm" style="float:right; color:#fff;">添加用户组</a>
                </div>
                   <div class="box-body">
                        <form name="myform" action="index.php?a=link.order" method="post">
                        <table class="table table-bordered"  id="mytable">
                                <thead>
                                    <tr>
                                        <td>id</td>
                                        <td>组名称</td>
										<td>成员数</td>
										<td>添加时间</td>
										<td>操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$group_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.group_id%}</td>
                                        <td>{%$value.group_name%}</td>
                                        <td><a href="index.php?a=group.user&group_id={%$value.group_id%}">{%$value.user_count%}</a></td>
                                        <td>{%$value.create_time%}</td>
										<td>
										<a href="index.php?a=group.pms&group_id={%$value.group_id%}">组权限设置</a>
										<!--
										<a href="index.php?a=group.user&group_id={%$value.group_id%}">组用户管理</a>-->
										<a href="index.php?a=group.update&group_id={%$value.group_id%}">修改</a>
										<a href="index.php?a=group.del&group_id={%$value.group_id%}" onclick="if(confirm('警告！确认删除信息?')==false)return false;">删除</a>
										</td>
                                    </tr>	
								{%/foreach%}
                                </tbody>	
                        </table>
								<br/>
                                </form>
								{%$page%}
				   </div><!--box-body -->
           </div><!--box box-default box-solid-->
        </section>    
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}

